import QtQuick 2.0
import QtQuick.Controls 2.0

Item{
    Column{
        anchors.centerIn: parent
        spacing: 10
        Rectangle{
            id: rect
            width: 200
            height: 60
            border.width: 1
            border.color: "red"
            color:"transparent"
            radius: 5

            Text {
                anchors.fill: parent
                font.family: "微软雅黑"
                text: lineEdit.text
                color: "green"
                font.pixelSize: 48
                fontSizeMode: Text.HorizontalFit
                minimumPixelSize: 10

            }
        }

        TextField{
            id: lineEdit
            width: rect.width
            height: 30
            selectByMouse: true
            text: "输入文字"
        }
    }

}

